<?php
declare (strict_types = 1);

namespace app\controller;

use app\common\model\ArticleCate;
use think\facade\Db;
use think\facade\View;
use think\Request;

class Cache extends AdminInit
{
    public function __construct()
    {
        parent::__construct();
       


    }
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function clear()
    {
        $res = \think\facade\Cache::clear();
        if($res){
            return json(["code"=>200]);
        }else{
            return json(["code"=>4000]);
        }
    }



}
